<!DOCTYPE HTML><html><head><meta charset="utf-8"><meta name="viewport" content="maximum-scale=1,minimum-scale=1,user-scalable=0,width=device-width,initial-scale=1"><meta name="format-detection" content="telephone=no,email=no,date=no,address=no"><link rel="stylesheet" href="../../../global/css/aui.css"><link rel="stylesheet" href="../../../global/css/my-css.css"><style>body,html{
        width: 100%;height: 100%;
    }
    .nick-and-level {
        color: #fff;
        text-align: left;
    }
    .nick-and-level .nick {
        font-size: .9rem;
        font-weight: 400;
        margin-right: .2rem;
    }
    .nick-and-level .level {
        display: inline-block;
    }
    .nick-and-level .aui-label {
        text-shadow: none;
        margin-bottom: .2rem;
        height: .7rem;
        padding-top: .1rem;
    }
    #no-msg-self{
        padding-top: 5rem;
        margin-top: -0.5rem;
    }
    .no-data-img{
        width: 122px;
        margin: 0 auto;
    }</style></head><body><div id="main" class="bg-white p-l5 m-b10 p-r5"></div><div id="no-msg-self" class="aui-hide" style="background: #fff;width:100%;height:100%;"><img class="no-data-img" src="../../../global/image/topic/nodata_no.png" alt=""><div class="s-14 c-9 m-t10 t-c">这里什么都没有哦~</div></div></body><script id="tpl-follow" type="text/x-dot-template">{{~it :v:i}}
    <div class="p-l10 p-t10 p-b10 flex align-center">
        <div class="flex align-center flex-shrink">
            <div tapmode onclick="views.openUCenterWin({{=v.uid}}, &quot;{{=escapeStr(decodeEmoji(v.username))}}&quot;);">
                <img src="{{=v.avatar}}" class="r100 w-50 h-50 img-d8" />
            </div>
        </div>
        <div class="m-l10 w-full">
            <div class="flex align-center" tapmode onclick="views.openUCenterWin({{=v.uid}}, &quot;{{=escapeStr(decodeEmoji(v.username))}}&quot;);">
                <div>{{=decodeEmoji(v.username)}}
                    <!-- {{=app.userLV.getHtml(v.level_score,v.ismaster,v.ismoderator, v.ispartner, v.ismember)}} -->
                </div>
                <span class="m-l5 nick-and-level">
                        {{=app.userLV.getHtml(v.level_score,v.admin_flag,v.moderator_flag, v.partner_flag, v.vip)}}
                </span>
            </div>
            <div class="flex between">
                <div tapmode onclick="views.openUCenterWin({{=v.uid}}, &quot;{{=escapeStr(decodeEmoji(v.username))}}&quot;);">
                    {{? v.recommend_source && v.recommend_source!='undefined' &&  v.recommend_source!='0'}}
                    <div class="s-11 c-9">{{=v.recommend_source}} </div>
                    {{?}}
                    <div class="s-11 c-9">粉丝数：{{=v.fans_num}}</div>
                </div>
                <div class="flex m-r10 p-r5 m-t-5">
                    <div data-uid="{{=v.uid}}" data-nick="{{=decodeEmoji(v.username)}}" tapmode onclick="ccn() && views.chatWithTa(this);" class="w-50 h-30 l-h28 bg-gray c-3 t-c s-13 r4 m-r5">私信</div>
                    <div tapmode onclick="utils.focusPersonOption(this);" data-recommend_source="{{=v.recommend_source}}" data-attention-state="{{= v.attention_state}}" data-uid="{{=v.uid}}" data-from="follow">
                        {{? v.attention_state==0 || v.attention_state==3}}
                            <button class="no-btn w-65 h-30 l-h25 bg-blue c-f t-c s-13 r4">关注</button>
                        {{?? v.attention_state==1}}
                            <button class="no-btn w-65 h-30 l-h28 b-blue c-green t-c s-13 r4">已关注</button>
                        {{?? v.attention_state==2}}
                            <button class="no-btn w-65 h-30 l-h28 b-blue c-blue t-c s-13 r4">相互关注</button>
                        {{?}}
                    </div>

                </div>
            </div>
        </div>
    </div>
    {{~}}</script><script src="../../../config.js"></script><script src="../../../global/script/lib/api.js"></script><script src="../../../global/script/lib/doT.min.js"></script><script src="../../../global/script/libx/myRongIM.js"></script><script src="../../../global/script/mylib.js"></script><script src="../../../app.js"></script><script src="./frm.js"></script><script type="text/javascript">apiready = function () {
        window.app.init4Frm();
        addPageLoading();

        window.fromName = api.pageParam.name;
        window.nowUid = api.pageParam.uid;

        loadMore();
        bindRefreshFeed();

        window.start = 1;
        initFocus(window.start, cfg.lauders_one_load, 1,window.fromName);
        evt.listenTo('renderFollow', function (data) {
            window.fromName = data.name;
            window.start = 1;
            initFocus(window.start, cfg.lauders_one_load, 1,data.name);
        })

    };
    function initFocus(start, size, check,fromName) {
        var iface = '';
        var data = {};
        if( fromName == 'focus' || fromName == 'other-focus' ){
            iface = 'get_attention_user_list';
            data = {
                fan_id: parseInt(window.nowUid),
                gid:parseInt(app.getGId()),
                page: start,
                page_context: size,
            };
        } else if( fromName == 'fans' || fromName == 'other-fans' ){
            iface = 'get_fans_list';
            data = {
                idol_id: parseInt(window.nowUid),
                gid:parseInt(app.getGId()),
                page: start,
                page_context: size,
            };
        } else if( fromName == 'friend' ){
            iface = 'get_friends';
            data = {
                uid: parseInt(window.nowUid),
                gid:parseInt(app.getGId()),
                page: start,
                page_context: size,
            };
        }

        gateway_user_center(iface, data, {
            always: function () {
                rmPageLoading();
                rmFooterLoading();
                utils.setRefreshDone();
                if (check) {
                    $api.byId('main').innerHTML = '';
                }
            },
            succ: function (json) {
                if(json.data.all_count > 0){
                    $api.addCls($api.byId('no-msg-self'),'aui-hide');
                    if (json.data.attention_list.length < 20) {
                        window.start = 0;
                    }
                    var html = doT_Render('#tpl-follow', json.data.attention_list);
                    $api.append($api.byId('main'), html);
                }else{
                    $api.removeCls($api.byId('no-msg-self'),'aui-hide');
                }
            },
            fail: function (err, url) {
                utils.postErrWithTipsEx(err, url, data);
            }
        });
    }

    function fooPushLaud() {
        var html = doT_Render('#tpl-follow', mockLaudList);
        $api.append($api.byId('main'), html)
        sofast(); // 优化 tapmode
    }

    function loadMore() {
        listenToScrollToBottom(function (ret, err) {
            if (window.start >= 1) {
                window.start++;
                addFooterLoading();
                initFocus(window.start , cfg.lauders_one_load,false,window.fromName);
            }
        });
    }
    function bindRefreshFeed() {
        utils.bindPullRefresh(function (onDone) {
            window.start = 1;
            initFocus(window.start, cfg.lauders_one_load, 1,window.fromName);
        });
    }</script></html>